home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9350 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.PBI.net!usenet
  2. From: mich@pbinet.com
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help! C code under Win 3.11
  5. Date: 9 Mar 1996 17:51:16 GMT
  6. Organization: Pacific Bell Internet Services
  7. Message-ID: <4hsgek$efq@SNFC21_SRVR_WWW.PBI.net>
  8. References: <4gko20$oha@earth.alpha.net> <4glbu9$jlo@news.nstn.ca>
  9. Reply-To: mich@pbinet.com
  10. NNTP-Posting-Host: ppp-5-36.rdcy01.pbinet.com
  11. X-Newsreader: IBM NewsReader/2 v1.03
  12.  
  13. In <4glbu9$jlo@news.nstn.ca>, keichele@ac.dal.ca (Klaus Eichele) writes:
  14. >sdg@earth.execpc.com (Software Development Group) wrote:
  15. >>/* main(int argc, char **argv)*/
  16. >>/* {*/
  17.  
  18. >>WINAPI
  19. >>WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
  20. >>{
  21. >> #define MAXCMDTOKENS 128
  22. >> int argc = 0;
  23. >> LPSTR argv[MAXCMDTOKENS];
  24.  
  25. >Hi,
  26. >The major problem here lies in the misconception that renaming main()
  27. >into WinMain() creates a Windows 3.11 application. 
  28.  
  29. His main problem is that he's not using the WinMain arguments. He must atleast
  30. copy lpstrcmdlin, etc, to argv, etc.
  31.  
  32. >P.S. comp.lang.c is the completely wrong group for questions like
  33. >this, and I am sure other people will point this out also. Try
  34. >comp.os.ms-windows.programmers.misc and related groups.
  35.  
  36. Agreed. This will be my last word on the subject...
  37.  
  38.